package com.sjd.storehouse;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@SpringBootApplication
public class StorehouseApplication implements WebMvcConfigurer {

    public static void main(String[] args) {
        SpringApplication.run(StorehouseApplication.class, args);
    }

    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
        registry.addViewController("/").setViewName("/login");
        registry.addViewController("/index").setViewName("/index");
        registry.addViewController("/addCenter").setViewName("/addCenter");
        registry.addViewController("/queryCenter").setViewName("/queryCenter");
        registry.addViewController("/queryAssist").setViewName("/queryAssist");
        registry.addViewController("/addAssist").setViewName("/addAssist");
        registry.addViewController("/outCenter").setViewName("/outCenter");
        registry.addViewController("/rentAssist").setViewName("/rentAssist");
    }
}
